package com.lyl.goods.service;

import com.lyl.goods.pojo.Product;

import java.util.List;

public interface ProductService {

    void add(String name, Integer price, Integer stock, String description);


    Product getProductById(Long id);

    void updateProduct(Product product);

    void delete(Long id);



    List<Product> getProductList(int pageNum, int pageSize);

    int getTotalCount();

    List<Product> getProduct(Integer productId);

    void batchDeleteProducts(List<Integer> selectedProductIds);
}
